<?xml version="1.0" encoding="windows-1251"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:simpleType name="StepType">
		<xs:annotation>
			<xs:documentation>Type of the operation described in a step</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="sql"/>
			<xs:enumeration value="sqlcmd"/>
			<xs:enumeration value="cmd"/>
			<xs:enumeration value="data"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="BooleanType">
		<xs:annotation>
			<xs:documentation>A boolean data type that restricts possible values to 1 (to represent True) and 0 (to represent False) rather than allowing the actual specification of True and False as values.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:unsignedByte">
			<xs:minInclusive value="0" />
			<xs:maxInclusive value="1" />
		</xs:restriction>
	</xs:simpleType>

	<xs:element name="Steps">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Step" maxOccurs="unbounded">
					<xs:complexType>
						<xs:sequence>
							<xs:element maxOccurs="unbounded" name="Field">
								<xs:complexType>
									<xs:attribute name="PK" type="xs:boolean" use="optional" />
									<xs:attribute name="Name" type="xs:string" use="required" />
								</xs:complexType>
							</xs:element>
						</xs:sequence>
						<xs:attribute name="Type" type="StepType"  use="required" />
						<xs:attribute name="DBName" type="xs:string" use="optional" default="master"/>
						<xs:attribute name="Name" type="xs:string" use="optional" />
						<xs:attribute name="FileName" type="xs:string" use="optional" />
						<xs:attribute name="RedeployableCodeObject" type="BooleanType" use="optional" default="0" />
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>